package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("membership_duration_card")
@ApiModel("会员管理1-桌台时长卡/2-桌台次卡实体/3-商品次卡")
public class MembershipDurationCard extends AbdulBaseEntity {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("会员ID(关联会员表)")
    private Long memberId;

    @ApiModelProperty("会员手机号")
    private String memberPhone;

    @ApiModelProperty("生效时间")
    private Date effectiveTime;

    @ApiModelProperty("状态（1-正常/2-已过期，3-已取消，4-暂停 5-作废）")
    private Integer status;

    @ApiModelProperty("卡号")
    private String cardNumber;

    @ApiModelProperty("卡名称")
    private String cardName;

    @ApiModelProperty("购买数量（张）")
    private Integer purchaseQuantity;

    @ApiModelProperty("剩余可用小时")
    private Double remainingTime;

    @ApiModelProperty("剩余可用次数")
    private Integer remainingNum;

    @ApiModelProperty("过期时间 （若为空 则代表不过期）")
    private Date expirationDate;

    @ApiModelProperty("会员卡类型（1-桌台时长卡，2-桌台次卡、3-商品次卡）")
    private Integer isType;

    @ApiModelProperty("支付金额")
    private Double payMoney;
}
